﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_subject_add.aspx.cs" Inherits="skvote.admin_subject_add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<%skvote.function.header(Response);%>
<title>【单考投票系统】后台管理中心</title>
</head>
<script language="javascript" type="text/javascript">
function check(){
	if(form1.subject.value==""){
		lblsubject.innerHTML = "投票主题不能为空！";
		form1.subject.focus();
		return false;}
	else{
		lblsubject.innerHTML = "";}	
	if(form1.qx.value==""){
		lblqx.innerHTML = "到期时间不能为空！";
		form1.qx.focus();
		return false;}	
	else{
		lblqx.innerHTML = "";}	
	return true;
	}
</script>
<body>
<table border="0" cellpadding="1" cellspacing="2" width="100%" id="table1" bgcolor="#E1F0FF">
  <tr>
    <td>
	   <table width="100%" id="table10" cellspacing="1">
	     <tr>
          <td id="TableTitle1"> 添加投票主题-&gt;</td>
		 </tr>
	   </table>
	 </td>
  </tr>
  <tr>
    <td><table border="1" cellpadding="4" cellspacing="0" width="100%" id="table2" style="border-color:#BFDFFF">
        <form method="post" id="form1" onsubmit="return check()" runat="server">
          <tr>
            <td width="20%" align="right">投票主题名称：</td>
            <td><input type="text" name="subject" id="subject" size="25"/><label id="lblsubject"></label></td>
          </tr>
          <tr>
            <td width="20%" align="right">到期时间：</td>
            <td><input type="text" name="qx" id="qx" value="<%=System.DateTime.Now%>" size="18"/><label id="lblqx"></label></td>
          </tr>
          <tr>
            <td colspan="2" align="center" style="background-color:#BFDFFF">
            <!--<input class="btn" type="submit" name="submit" value=" 添 加 ">-->
            <asp:Button CssClass="btn" ID="submit" Text=" 添 加 " runat="server" 
                    onclick="submit_Click" />
            </td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
</body>
</html>